from typing import Optional

from fastapi_amis_admin.models import Field
from sqlmodel import SQLModel


class Category(SQLModel, table=True):
    id: Optional[int] = Field(default=None, primary_key=True, nullable=False)
    name: str = Field(title='CategoryName')
    description: str = Field(default='', title='Description')